home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD005b.dsk
/
WORD.PROBLEMS.bas
< prev
Wrap
BASIC Source File
|
2003-06-12
|
3KB
|
81 lines
10 REM WORD PROBLEMS: ADDING TO 20
20 TEXT : HOME : SPEED= 255
30 VTAB 11
40 PRINT ">>>>> ADDLE APPLE WORD PROBLEMS <<<<<"
50 PRINT : PRINT " ADDING TO TWENTY"
60 FOR P = 1 TO 2500: NEXT
70 HOME : VTAB 12
100 FOR J = 0 TO 6
110 READ A$(J)
115 NEXT
120 FOR J = 0 TO 5
130 READ B$(J)
135 NEXT
140 FOR J = 0 TO 5
150 READ C$(J)
155 NEXT
160 DATA "NESTOR","JOSHUA","MANESSA","COOKIE","EDELWEISS","ELIOT","PEACE"
162 DATA "KITTENS","TENNIS BALLS","COOKIES","PENNIES","MICE","SEEDS"
164 DATA "PAULA","BOBBY","TAMMY","HEATHER","TONY","RICHIE"
170 PRINT "HI! I'M ADDLE APPLE. WHAT'S YOUR NAME?"
180 INPUT "";N$: PRINT : PRINT : PRINT
200 PRINT "HOW MANY QUESTIONS TODAY, ";N$;"?"
205 INPUT "";NQ
210 Z = Z +1
220 HOME : VTAB 8
250 GOSUB 4000
300 PRINT "IF ";A$(M);" HAD ";G;" ";B$(N);","
310 PRINT
320 PRINT "AND ";C$(O);" GAVE ";H;" MORE ";B$(N)
330 PRINT
340 PRINT "HOW MANY WOULD ";A$(M);" HAVE IN ALL?"
350 PRINT
360 INPUT "";A
370 IF A = G +H THEN GOSUB 1000
380 IF A < >G +H THEN GOSUB 2000
390 IF Z = NQ THEN GOSUB 3000
400 GOTO 210
1000 HOME : VTAB 15:R = INT(( RND(1) *5) +1): ON R GOTO 1001,1002,1003,1004,1005
1001 PRINT "I'M PROUD OF YOU, ";N$;"!": GOTO 1010
1002 PRINT "YOU'VE BEEN STUDYING! WOW!": GOTO 1010
1003 PRINT "I THINK YOU'RE SMART ENOUGH TO MARRY ME!": GOTO 1010
1004 PRINT A$(M);" SAYS YOU'RE RIGHT!!!": GOTO 1010
1005 PRINT "RIGHT! GOOD WORK, ";N$;"."
1007 IF T = 1 THEN T = 0: FOR P = 1 TO 3500: NEXT : RETURN
1010 IF T = 1 THEN T = 0: FOR P = 1 TO 3500: NEXT : RETURN
1012 QR = QR +1
1015 FOR P = 1 TO 3500: NEXT
1020 RETURN
2000 HOME : VTAB 15:R = INT(( RND(1) *5) +1): ON R GOTO 2001,2002,2003,2004,2005
2001 PRINT "SORRY, ";N$;". THAT'S NOT IT.": GOTO 2010
2002 PRINT "NO. TRY AGAIN, ";N$;".": GOTO 2010
2003 PRINT A$(M);" THINKS YOU'RE WRONG!": GOTO 2010
2004 PRINT "NOT IT!": GOTO 2010
2005 PRINT "WRONG. YOU MUST NOT BE A COMPUTER!!!"
2010 IF T = 1 THEN T = 0: FOR P = 1 TO 3500: NEXT : RETURN
2011 QW = QW +1
2012 T = 1
2014 PRINT : PRINT "LET'S TRY AGAIN.": FOR P = 1 TO 3500: NEXT : HOME : VTAB 6: POP : GOTO 300
2015 FOR P = 1 TO 3500: NEXT
2020 RETURN
3000 HOME : VTAB 12
3010 PRINT "THAT'S ALL ";NQ;" QUESTIONS, ";N$;"."
3020 PRINT
3030 PRINT "YOU GOT ";QR;" RIGHT AND ";QW;" WRONG."
3040 PRINT
3050 IF QR = NQ THEN PRINT "PERFECT SCORE!!!"
3060 IF QR/NQ <1.0 AND QR/NQ > = .90 THEN PRINT "EXCELLENT WORK! ALMOST ALL RIGHT!"
3070 IF QR/NQ <.75 THEN PRINT "GOOD TRY, ";N$;", BUT I THINK YOU": PRINT "COULD USE A LITTLE MORE PRACTICE!"
3100 PRINT
3110 PRINT : PRINT "DO YOU WANT TO TRY AGAIN?"
3115 INPUT "";L$
3120 IF LEFT$(L$,1) = "Y" THEN HOME : RESTORE : VTAB 6: CLEAR : GOTO 70
3200 PRINT : PRINT : PRINT "OKAY, SEE YOU LATER, ";N$;"."
3210 END
4000 HOME : VTAB 6
4010 M = RND(1) *7
4020 N = RND(1) *6
4030 O = RND(1) *6
4040 G = INT( RND(1) *9) +2
4050 H = INT( RND(1) *9) +2
4060 RETURN